package com.wtb.javatool.util;

import com.fy.wetoband.utils.RequestUtil;
import com.wtb.javatool.entity.MajorScore;

import javax.servlet.http.HttpServletRequest;

public class MajorScoreUtil {

    public static MajorScore getMajorScore(HttpServletRequest request){
        String majorCode = RequestUtil.getStringParameter(request, "majorCode");

        String grade1_1_1 = RequestUtil.getStringParameter(request, "grade_1_1_1");
        String grade1_1_2 = RequestUtil.getStringParameter(request, "grade_1_1_2");
        String grade1_2_1 = RequestUtil.getStringParameter(request, "grade_1_2_1");
        String grade2_1_1 = RequestUtil.getStringParameter(request, "grade_2_1_1");
        String grade2_1_2 = RequestUtil.getStringParameter(request, "grade_2_1_2");
        String grade2_1_3 = RequestUtil.getStringParameter(request, "grade_2_1_3");
        String grade2_1_4 = RequestUtil.getStringParameter(request, "grade_2_1_4");
        String grade2_2_1 = RequestUtil.getStringParameter(request, "grade_2_2_1");
        String grade2_2_2 = RequestUtil.getStringParameter(request, "grade_2_2_2");
        String grade2_2_3 = RequestUtil.getStringParameter(request, "grade_2_2_3");
        String grade2_2_4 = RequestUtil.getStringParameter(request, "grade_2_2_4");
        String grade3_1_1 = RequestUtil.getStringParameter(request, "grade_3_1_1");
        String grade3_1_2 = RequestUtil.getStringParameter(request, "grade_3_1_2");
        String grade4_1_1 = RequestUtil.getStringParameter(request, "grade_4_1_1");
        String grade4_1_2 = RequestUtil.getStringParameter(request, "grade_4_1_2");
        String grade4_2_1 = RequestUtil.getStringParameter(request, "grade_4_2_1");
        String grade4_2_2 = RequestUtil.getStringParameter(request, "grade_4_2_2");
        String grade4_2_3 = RequestUtil.getStringParameter(request, "grade_4_2_3");
        String grade4_2_4 = RequestUtil.getStringParameter(request, "grade_4_2_4");
        String grade4_2_5 = RequestUtil.getStringParameter(request, "grade_4_2_5");
        String grade4_3_1 = RequestUtil.getStringParameter(request, "grade_4_3_1");
        String grade4_4_1 = RequestUtil.getStringParameter(request, "grade_4_4_1");
        String grade4_4_2 = RequestUtil.getStringParameter(request, "grade_4_4_2");
        String grade4_4_3 = RequestUtil.getStringParameter(request, "grade_4_4_3");
        String grade5_1_1 = RequestUtil.getStringParameter(request, "grade_5_1_1");
        String grade5_1_2 = RequestUtil.getStringParameter(request, "grade_5_1_2");
        String grade5_2_1 = RequestUtil.getStringParameter(request, "grade_5_2_1");
        String grade5_2_2 = RequestUtil.getStringParameter(request, "grade_5_2_2");
        String grade5_3_1 = RequestUtil.getStringParameter(request, "grade_5_3_1");
        String grade5_3_2 = RequestUtil.getStringParameter(request, "grade_5_3_2");

        String remark1_1_1 = RequestUtil.getStringParameter(request, "remark_1_1_1");
        String remark1_1_2 = RequestUtil.getStringParameter(request, "remark_1_1_2");
        String remark1_2_1 = RequestUtil.getStringParameter(request, "remark_1_2_1");
        String remark2_1_1 = RequestUtil.getStringParameter(request, "remark_2_1_1");
        String remark2_1_2 = RequestUtil.getStringParameter(request, "remark_2_1_2");
        String remark2_1_3 = RequestUtil.getStringParameter(request, "remark_2_1_3");
        String remark2_1_4 = RequestUtil.getStringParameter(request, "remark_2_1_4");
        String remark2_2_1 = RequestUtil.getStringParameter(request, "remark_2_2_1");
        String remark2_2_2 = RequestUtil.getStringParameter(request, "remark_2_2_2");
        String remark2_2_3 = RequestUtil.getStringParameter(request, "remark_2_2_3");
        String remark2_2_4 = RequestUtil.getStringParameter(request, "remark_2_2_4");
        String remark3_1_1 = RequestUtil.getStringParameter(request, "remark_3_1_1");
        String remark3_1_2 = RequestUtil.getStringParameter(request, "remark_3_1_2");
        String remark4_1_1 = RequestUtil.getStringParameter(request, "remark_4_1_1");
        String remark4_1_2 = RequestUtil.getStringParameter(request, "remark_4_1_2");
        String remark4_2_1 = RequestUtil.getStringParameter(request, "remark_4_2_1");
        String remark4_2_2 = RequestUtil.getStringParameter(request, "remark_4_2_2");
        String remark4_2_3 = RequestUtil.getStringParameter(request, "remark_4_2_3");
        String remark4_2_4 = RequestUtil.getStringParameter(request, "remark_4_2_4");
        String remark4_2_5 = RequestUtil.getStringParameter(request, "remark_4_2_5");
        String remark4_3_1 = RequestUtil.getStringParameter(request, "remark_4_3_1");
        String remark4_4_1 = RequestUtil.getStringParameter(request, "remark_4_4_1");
        String remark4_4_2 = RequestUtil.getStringParameter(request, "remark_4_4_2");
        String remark4_4_3 = RequestUtil.getStringParameter(request, "remark_4_4_3");
        String remark5_1_1 = RequestUtil.getStringParameter(request, "remark_5_1_1");
        String remark5_1_2 = RequestUtil.getStringParameter(request, "remark_5_1_2");
        String remark5_2_1 = RequestUtil.getStringParameter(request, "remark_5_2_1");
        String remark5_2_2 = RequestUtil.getStringParameter(request, "remark_5_2_2");
        String remark5_3_1 = RequestUtil.getStringParameter(request, "remark_5_3_1");
        String remark5_3_2 = RequestUtil.getStringParameter(request, "remark_5_3_2");

        String conclusion = RequestUtil.getStringParameter(request, "conclusion");
        String handlersName = RequestUtil.getStringParameter(request, "handlersName");


        MajorScore majorScore = new MajorScore();
        majorScore.setMajorCode(majorCode);
        majorScore.setGrade_1_1_1(grade1_1_1);
        majorScore.setGrade_1_1_2(grade1_1_2);
        majorScore.setGrade_1_2_1(grade1_2_1);
        majorScore.setGrade_2_1_1(grade2_1_1);
        majorScore.setGrade_2_1_2(grade2_1_2);
        majorScore.setGrade_2_1_3(grade2_1_3);
        majorScore.setGrade_2_1_4(grade2_1_4);
        majorScore.setGrade_2_2_1(grade2_2_1);
        majorScore.setGrade_2_2_2(grade2_2_2);
        majorScore.setGrade_2_2_3(grade2_2_3);
        majorScore.setGrade_2_2_4(grade2_2_4);
        majorScore.setGrade_3_1_1(grade3_1_1);
        majorScore.setGrade_3_1_2(grade3_1_2);
        majorScore.setGrade_4_1_1(grade4_1_1);
        majorScore.setGrade_4_1_2(grade4_1_2);
        majorScore.setGrade_4_2_1(grade4_2_1);
        majorScore.setGrade_4_2_2(grade4_2_2);
        majorScore.setGrade_4_2_3(grade4_2_3);
        majorScore.setGrade_4_2_4(grade4_2_4);
        majorScore.setGrade_4_2_5(grade4_2_5);
        majorScore.setGrade_4_3_1(grade4_3_1);
        majorScore.setGrade_4_4_1(grade4_4_1);
        majorScore.setGrade_4_4_2(grade4_4_2);
        majorScore.setGrade_4_4_3(grade4_4_3);
        majorScore.setGrade_5_1_1(grade5_1_1);
        majorScore.setGrade_5_1_2(grade5_1_2);
        majorScore.setGrade_5_2_1(grade5_2_1);
        majorScore.setGrade_5_2_2(grade5_2_2);
        majorScore.setGrade_5_3_1(grade5_3_1);
        majorScore.setGrade_5_3_2(grade5_3_2);

        majorScore.setRemark_1_1_1(remark1_1_1);
        majorScore.setRemark_1_1_2(remark1_1_2);
        majorScore.setRemark_1_2_1(remark1_2_1);
        majorScore.setRemark_2_1_1(remark2_1_1);
        majorScore.setRemark_2_1_2(remark2_1_2);
        majorScore.setRemark_2_1_3(remark2_1_3);
        majorScore.setRemark_2_1_4(remark2_1_4);
        majorScore.setRemark_2_2_1(remark2_2_1);
        majorScore.setRemark_2_2_2(remark2_2_2);
        majorScore.setRemark_2_2_3(remark2_2_3);
        majorScore.setRemark_2_2_4(remark2_2_4);
        majorScore.setRemark_3_1_1(remark3_1_1);
        majorScore.setRemark_3_1_2(remark3_1_2);
        majorScore.setRemark_4_1_1(remark4_1_1);
        majorScore.setRemark_4_1_2(remark4_1_2);
        majorScore.setRemark_4_2_1(remark4_2_1);
        majorScore.setRemark_4_2_2(remark4_2_2);
        majorScore.setRemark_4_2_3(remark4_2_3);
        majorScore.setRemark_4_2_4(remark4_2_4);
        majorScore.setRemark_4_2_5(remark4_2_5);
        majorScore.setRemark_4_3_1(remark4_3_1);
        majorScore.setRemark_4_4_1(remark4_4_1);
        majorScore.setRemark_4_4_2(remark4_4_2);
        majorScore.setRemark_4_4_3(remark4_4_3);
        majorScore.setRemark_5_1_1(remark5_1_1);
        majorScore.setRemark_5_1_2(remark5_1_2);
        majorScore.setRemark_5_2_1(remark5_2_1);
        majorScore.setRemark_5_2_2(remark5_2_2);
        majorScore.setRemark_5_3_1(remark5_3_1);
        majorScore.setRemark_5_3_2(remark5_3_2);
        majorScore.setConclusion(conclusion);
        majorScore.setHandlersName(handlersName);

        return majorScore;
    }
}
